﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web_June_17
{
    public partial class Jump : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string name = Request.Form["Name"];
            string password = Request.Form["Password"];

            
            
            string name2 = Request.QueryString["name"];
            string password2 = Request.QueryString["password"];
            

            if (name == null)
            {
                Response.Write($"<h1>Get:QueryString ==> 欢迎你，{name2},你的密码是：{password2}</h1>");
            }
            else
            {
                Response.Write($"<h1>Post:Form ==> 欢迎你，{name},你的密码是：{password}</h1><br/>");
            }
        }
    }
}